package com.example.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.example.web.service.GirlService;
import com.example.web.tool.R;

@RestController
public class GirlController {

	@Autowired
	private GirlService girlService;
	
	@GetMapping("/girl{id}")
	public R getGirl(@PathVariable("id") Integer id) {
		return R.ok().put("data", girlService.getGirl(id));
	}
	
}
